package com.project.m.api.busi.db.repo.user;

import com.project.m.api.busi.db.entity.hicatcard.user.TUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface UserRepo extends JpaRepository<TUser, Long>, JpaSpecificationExecutor<TUser> {

    List<TUser> findByOpenidAndEnable(String openid, Boolean enable);

    List<TUser> findByPhoneAndEnable(String phone, Boolean enable);

    TUser findByUserId(Long userId);
}
